<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            color: blueviolet!important;
        }
        .test{
            color: brown;
            
        }
    </style>
</head>
<!-- !important无穷大>行内样式1000>ID选择器0100>类选择器0010,伪类选择器0010>元素选择器0001>继承或*0000 -->
<body>
    <div class="test">若选择器相同则根据层叠性,若不同则根据选择器的权重</div>
</body>
</html>